package com.ncucoder.client.model;

import java.sql.Timestamp;

/**
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @since 2019-01-18 18:56
 */
public class Message {
    private Long id;
    private String body;
    private Integer status;
    private Integer retryCount;
    private Timestamp nextRetry;
    private Timestamp createTime;
    private Timestamp updateTime;

    public Message() {
    }

    public Message(String body, Integer status, Integer retryCount, Timestamp nextRetry, Timestamp createTime, Timestamp updateTime) {
        this.body = body;
        this.status = status;
        this.retryCount = retryCount;
        this.nextRetry = nextRetry;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) {
        this.retryCount = retryCount;
    }

    public Timestamp getNextRetry() {
        return nextRetry;
    }

    public void setNextRetry(Timestamp nextRetry) {
        this.nextRetry = nextRetry;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "MessageConstants{" +
                "id=" + id +
                ", body='" + body + '\'' +
                ", status=" + status +
                ", retryCount=" + retryCount +
                ", nextRetry=" + nextRetry +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
